# 使用官方Python基础镜像
FROM python:3.12-slim

# 创建工作目录并设置
WORKDIR /app

# 安装Python依赖
COPY requirements.txt .
RUN pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -r requirements.txt  --no-cache-dir

# 暴露端口
EXPOSE 8000

# 启动命令
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "spinct.wsgi:application"]